package cn.hxzy.user.controller;

import cn.hxzy.common.domain.ClassMenu;
import cn.hxzy.user.service.ClassMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 专门用来远程调用的controller
 */
@RestController
@RequestMapping("/userClient")
public class ClientController {
    @Autowired
    private ClassMenuService classMenuService;


    //根据班级编号查所有课程编号集合
    @GetMapping("/selectList/{classId}")
    List<ClassMenu> selectList(@PathVariable Integer classId){
        return classMenuService.selectList(classId);
    }
}
